package cn.retalsystem.dao;

import cn.retalsystem.bean.Chewei;
import cn.retalsystem.vo.CheweiVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import java.util.List;

public interface CheweiMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Chewei record);

    int insertSelective(Chewei record);

    Chewei selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Chewei record);

    int updateByPrimaryKey(Chewei record);

    /*
查询所有车位信息
     */

    public List<CheweiVo> selectAllChewei();


    /**
     * 陈妙斌
     * 根据楼栋id查询车位信息集合
     * @param budingId
     * @return List<Chewei>
     */
    List<Chewei> selectCheweiByBudingId(Integer budingId);
//    List<CheweiVo> selectCheweiVoByExample(@Param("bname") String bname, @Param("type")Integer type);

    List<CheweiVo> selectcheweiBybudingId(@Param("bname") String bname,@Param("type") Integer type);
}